package com.lb.myeam.core.dao;

import java.util.List;
import com.lb.myeam.core.dto.TreeDTO;
import com.lb.myeam.core.entity.Menu;

public interface MenuDao {
	boolean save(Menu obj) throws Exception;

	boolean update(Menu obj) throws Exception;

	boolean delete(int id) throws Exception;

	List<Menu> findAll() throws Exception;
	

	Menu findById(int id) throws Exception;

	List<TreeDTO> getChildrenByParentId(String id) throws Exception;

	public List<Menu> getChildren(int pid) throws Exception;
}
